package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
/**
 * 试卷题目关联
 *
 * @author ahuan
 */
@Data
@TableName("paper_questions")
@EqualsAndHashCode(callSuper = true)
public class PaperQuestion extends BaseModel {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("paper_id")
    private Long paperId;

    @TableField("question_id")
    private Long questionId;

    @TableField("question_version")
    private Integer questionVersion;

    @TableField("score")
    private BigDecimal score;

    @TableField("sort")
    private Integer sort;

    @TableField("required")
    private Integer required;
}